//
//  KABSkinModel.m
//  kabu
//
//  Created by XiangDongMBP on 2017/4/7.
//  Copyright © 2017年 East. All rights reserved.
//

#import "KABSkinModel.h"

@implementation KABSkinClassItem
+ (NSDictionary<NSString *,id> *)modelCustomPropertyMapper {
    return @{@"skin_id" : @"id"};
}
@end
@implementation KABSkinClass
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass {
    return @{@"skinpackage_list" : [KABSkinClassItem class]};
}
- (BOOL)totalLoad {
    return (self.skinpackage_list.count >= self.total_rows);
}
- (void)addMoreWithData:(KABSkinClass *)temp {
    self.total_rows = temp.total_rows;
    [self.skinpackage_list addObjectsFromArray:temp.skinpackage_list];
}
@end

@implementation KABSkinHomepage
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass {
    return @{@"skinpackage_class_list" : [KABSkinClass class]};
}
- (BOOL)totalLoad {
    return (self.skinpackage_class_list.count >= self.total_rows);
}
- (void)addMoreWithData:(KABSkinHomepage *)temp {
    self.total_rows = temp.total_rows;
    [self.skinpackage_class_list addObjectsFromArray:temp.skinpackage_class_list];
}
@end


@implementation KABSkinDetImgItem
+ (NSDictionary<NSString *,id> *)modelCustomPropertyMapper {
    return @{@"img_id" : @"id"};
}
@end
@implementation KABSkinDetail
+ (NSDictionary<NSString *,id> *)modelCustomPropertyMapper {
    return @{@"skin_id" : @"id"};
}
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass {
    return @{@"introduce_image_list" : [KABSkinDetImgItem class]};
}
@end


@implementation KABSkinModel
@end
